<link href="admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<{$config.weburl}>/script/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="<{$config.weburl}>/script/jquery.ui.js"></script>
<script type="text/javascript" src="<{$config.weburl}>/script/Validator.js"></script>
<div class="container">
<div class="oflow" style="height:230px">
<form name="tarento_rate_setting" id="tarento_rate_setting" action="" method="post">
<input name="id" type="hidden" id="id" value="<{$id}>">
<input name="member_id" type="hidden" id="member_id" value="<{$de.member_id}>">
<input name="act" type="hidden" id="act" value="edit">
<table class="table">
    <thead>
        <tr>
            <th class="partition" colspan="99">合伙人设置</th>
        </tr>
    </thead>
    <tbody>
    <tr>
        <td width="100">最低返现比例</td>
        <td colspan="3">
            <input type="text" name="lowest_rate" id="lowest_rate" value="<{$de.lowest_rate}>" />
            <{if $error }><span style="color:red;"><{$error}></span><{/if}>
        </td>
    </tr>
    </tbody>
</table>
<div class="dialog_button">
    <input id="save" type="button" value="保存">
</div>
</form>
<div id="error"></div> 
<script>
$("#save").click(function () {
	var id = $('#id').val();
	var member_id = $('#member_id').val();
	var act = $('#act').val();
	var lowest_rate = $('#lowest_rate').val();
	$.post('<{$config.weburl}>/admin/module.php?m=product&s=tarento_rate_setting.php',{"id":id,"member_id":member_id,"act":act,"lowest_rate":lowest_rate},function(res){
		if(res.code!=0){
			alert(res.msg);
		}else{
		    window.parent.main.document.location.reload();
		    window.parent.DialogManager.close("edit_rate");
		}
	},'json');
    return false;
});
</script>
</div>
</div>